import React from 'react';
import {ConfigProvider, Table} from 'antd';

export default function ScrollTable(props: any) {
  const {dataSource} = props;

  return (
    <div>
      <ConfigProvider
        theme={{
          "token": {
            "padding": 10,
            "margin": 0,
          }
        }}>
        <Table
          bordered={true}
          pagination={false}
          scroll={{y: "calc(27vh + 60px)"}}
          {...props}
        />
      </ConfigProvider>

    </div>
  );
}

